# Contributor: Galen Abell <galen@galenabell.com>
# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=rss2email
pkgver=3.14
pkgrel=2
pkgdesc="Forward RSS feeds to your email address, community maintained"
url="https://github.com/rss2email/rss2email"
arch="noarch"
license="GPL-2.0-only"
depends="python3 py3-feedparser py3-html2text py3-beautifulsoup4"
makedepends="py3-gpep517 py3-poetry-core"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/r/rss2email/rss2email-$pkgver.tar.gz
	poetry-core.patch
	html2text-space.patch
	"
replaces="py3-rss2email"
provides="py3-rss2email=$pkgver-r$pkgrel"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	cd test
	python3 -m unittest
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
e5da76894d315621bd097d907cbb99e5ecb0f3f8c0fc10ca619577cc08d66e38e47aec38d96d719b3ff2309056c79d7e33fa9feecd6de9b6d950da3ef39533ed  rss2email-3.14.tar.gz
237a2e111c37ac86b168e51949398fc635e80def80f814f14de0ffa6e842e464f2231b4c421d02ec704490031408769543e32ad16bf0ab7eefeb29d8c2c32f4c  poetry-core.patch
5dd211b053eabf0a098c0d455f9e30b611ece12e9d077f1cde04c9ae9dc4e5f49e9c0cac8e208dcf6b226b77d70a27b150c289d51e5b9c8839dd44113db6db1a  html2text-space.patch
"
